<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCaseReceiptsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('case_receipts', function (Blueprint $table) {
            $table->increments('id');
            $table->string('receive')->default('')->comment('收支金额');
            $table->integer('paymethod')->comment('收款方式');
            $table->integer('billtype')->comment('票据类型');
            $table->integer('case_case_id')->comment('所属案件');
            $table->string('remark')->nullable()->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('case_receipts');
    }
}
